/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Distribuciones;

/**
 *
 * @author USUARIO
 */
public class Exponencial implements Distribucion {
    private double lambda;

    public Exponencial(double l){
        lambda=l;
    }

    public double generar(double u){
        return -Math.log(1-u)/lambda;
    }


}
